//
//  LYYHeaderCollectionReusableView.m
//  Icar
//
//  Created by dllo on 15/10/19.
//  Copyright © 2015年 小龙侠. All rights reserved.
//

#import "LYYHeaderCollectionReusableView.h"
#import "BaseHeader.h"
@implementation LYYHeaderCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imView = [[UIImageView alloc]initWithFrame:CGRectMake(2, 0, WIDTH(30), HEIGHT(30))];
        [self addSubview:self.imView];
        
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH(40), 0, WIDTH(80), HEIGHT(30))];
        [self addSubview:self.label];
        if (SCREEN_HEIGHT == 736) {
            [self.label setFont:[UIFont systemFontOfSize:16.]];
        }else if (SCREEN_HEIGHT == 667){
            [self.label setFont:[UIFont systemFontOfSize:14.]];
        }else if (SCREEN_HEIGHT == 568){
            [self.label setFont:[UIFont systemFontOfSize:12.]];
        }else if (SCREEN_HEIGHT == 480){
            [self.label setFont:[UIFont systemFontOfSize:10.]];
        }
        
    }
    return self;
}

@end
